import request from '@/utils/request'

export function userList(data) {
  return request({
    url: '/user/getUserList',
    method: 'post',
    data
  })
}

export function getUser(userId) {
  return request({
    url: '/user/getUser' + '?userId=' + userId,
    method: 'get'
  })
}

export function updateUserById(data) {
  return request({
    url: '/user/updateUserById',
    method: 'post',
    data
  })
}
export function deleteUserById(userIds) {
  return request({
    url: '/user/deleteUser?userIds=' + userIds,
    method: 'post'
  })
}

export function saveUser(data) {
  return request({
    url: '/user/saveUser',
    method: 'post',
    data
  })
}
